<!--This is a kits list-->

<table class="kits" summary="installed kits">
    <caption></caption>
    <tr class="headers">
        <th class="icon">Diagnostics</th>
        <th>Id</th>
        <th>Description</th>
        <th class="icon tests"><span>Has unit tests ?</span></th>
        <th class="doc"><span>Has documentation ?</span></th>
        <th class="subkits"><span>Has subkits ?</span></th>
    </tr>{% for k in kits %}
    <tr class="{% cycle odd,even %}">
        {% switch k.getstatus %}
            {% case "ok" %}<td class="icon ok"><span>ok</span></td>{% endcase %}
            {% case "bad_cfg" %}<td class="icon broken"></td>{% endcase %}
            {% case "missing_file" %}<td class="icon broken"></td>{% endcase %}
            {% default %}<td class="icon alert"><span>something wrong</span></td>{% enddefault %}
        {% endswitch %}

        <td><a href="kit/{{ k.getid }}">{{ k.getname }}</a></td>
        <td>{{ k.getdescription }}</td>

        {% if k.hastests %}
            <td class="icon has_tests"><span>yes</span></td>
        {% else %}
            <td class="icon has_no_tests"><span>no</span></td>
        {% endif %}

        {% if k.hasdocs %}
            <td class="icon has_docs"><span>yes</span></td>
        {% else %}
            <td class="icon"><span>no</span></td>
        {% endif %}

        {% if k.listsubkits %}
            <td class="has_subkits"><span>{{ k.listsubkits|count }}</span></td>
        {% else %}
            <td class="has_no_subkits"><span>0</span></td>
        {% endif %}

        {% if k.getlink %}
            <td><a class="link" href="{{ k.getlink }}">web</a></td>
        {% else %}
            <td></td>
        {% endif %}

    </tr>{% endfor %}
</table>